<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> 
<title>图说北京</title>
<link href="${resPath}/sdzc/css/ts-style.css" rel="stylesheet" type="text/css" />
<link rel='stylesheet' href='${resPath}/sdzc/css/ts-bootstrap.min.css'>
<link rel="stylesheet" href="${resPath}/sdzc/css/ts1-style.css">
<script type="text/javascript" src="http://www.beijing.gov.cn/images/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${resPath}/sdzc/js/tsdh.js"></script>
<script type="text/javascript" src="${resPath}/sdzc/js/ts-bigpicroll.js"></script>

</head>

<body style="background:#2e231b;">


<!--图册概览页-->
<style>
    .crumbsBox{width: 1200px; margin: 0 auto; }
    .crumbsBox .crumbs{height: 64px; margin: 0 auto;width: 1100px;}
    #breadcrumb{width: 100%; line-height: 56px; font-size: 14px; color: #919191;}
    #breadcrumb a{color: #919191;}
    .repeatX{width: 100%; height: 8px;}
	/* 分页 */
	.ts-tc-xl-bd{background:#2e231b none;}
	.mt-5, .my-5{margin-bottom:10px;}
	div.page-wrapper {
	  width: 100%;
	  padding: 20px 0;
	  text-align: center;
	}
	
	div.page-wrapper a, div.page-wrapper span {
	  font-size: 16px;
	  color: #d5b782;
	  display: inline-block;
	  vertical-align: middle;
	}
	
	div.page-wrapper a.btn-first, div.page-wrapper a.btn-last, div.page-wrapper a.num {
	  text-align: center;
	  margin: 0 2px; padding:5px 30px;border:1px solid #d5b782;border-radius:20px;cursor:pointer;
	}
	
	div.page-wrapper a.btn-first, div.page-wrapper a.btn-last {
	  background: no-repeat center center;
	  -webkit-background-size: 12px 12px;
	          background-size: 12px;
	}
	
	div.page-wrapper a.btn-first {
	}
	
	div.page-wrapper a.btn-last {
	}
	
	div.page-wrapper a.active {
	  background: #d5b782;
	  color: #2e231b;
	}
	
	div.page-wrapper span.txt {
	  padding: 0 3px;
	}
	
	div.page-wrapper input.page {
	  width: 50px;
	  vertical-align: middle;
	  border: 1px solid #ddd;
	  padding: 3px 12px;
	  font-size: 16px;
	}
	
	div.page-wrapper button.btn-okay {
	padding:5px 30px;border:1px solid #d5b782;border-radius:20px;
	  vertical-align: middle;
	background: #d5b782;
	  color: #2e231b;
	  font-size: 16px;
	  margin-left: 5px;
	}
	.g-wrap .m-imgBlock{margin:5px;}
	
	.container-sd{ width:1100px; margin:0 auto; margin-bottom:100px;}
	.m-imgBlock .m-imgWrap a:hover span{ position:absolute; bottom:0; z-index:9999; width:100%; left:0; text-align:center; color:#fff; font-size:14px; line-height:35px; background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,1));}
	.container-sd{display: block;}
	.g-wrap .m-imgBlocks{width:110%;}
	div.page-wrapper{margin-top:30px;margin-left:-5%;}
</style>
<!--图册概览页-->
<div class="ts-bd-3">
<h2><img src="${resPath}/sdzc/images/ts-img-12.png" title="" /></h2>
<h3><img src="${resPath}/sdzc/images/ts-img-yd-4.png" title="" /></h3>
</div>

<div class="container-sd">
            <div class="contents">
                  <ul>
                      <li>
                       <div class="g-wrap">
			<div class="m-imgBlocks" >
            
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="http://www.beijing.gov.cn/tsbj/sys/zcs/" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202011/W020201109338579088275.jpg" alt="北京秋意正浓" title="北京秋意正浓" class="img1" />
                        <span>北京秋意正浓</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="./202011/t20201106_2130358.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202011/W020201106558868375069.png" alt="2020大运河文化节“网红打卡地”" title="2020大运河文化节“网红打卡地”" class="img1" />
                        <span>2020大运河文化节“网红打卡地”</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="http://www.beijing.gov.cn/tsbj/sys/zjj/202011/t20201103_2128010.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202011/W020201103594431682436.jpg" alt="地坛公园成网红赏叶打卡地" title="地坛公园成网红赏叶打卡地" class="img1" />
                        <span>地坛公园成网红赏叶打卡地</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="./202011/t20201104_2128582.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202011/W020201104542836574789.jpg" alt="北京密云水库唯美景色" title="北京密云水库唯美景色" class="img1" />
                        <span>北京密云水库唯美景色</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="./202010/t20201021_2116725.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202010/W020201021386252835137.jpg" alt="赏红叶 看秋景 遇见最美秋色" title="赏红叶 看秋景 遇见最美秋色" class="img1" />
                        <span>赏红叶 看秋景 遇见最美秋色</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="./202010/t20201019_2114838.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202010/W020201019537173315546.jpg" alt="密云云蒙山秋色宜人成赏红叶最佳打卡地" title="密云云蒙山秋色宜人成赏红叶最佳打卡地" class="img1" />
                        <span>密云云蒙山秋色宜人成赏红叶最佳打卡地</span>
					</a>
                    </div>
				</div>
			
				<div class="m-imgBlock" >
					<div class="m-imgWrap">
                    <a href="./202009/t20200928_2101257.html" target="_blank">
                    <img src="http://www.beijing.gov.cn/tsbj/sxym/202009/W020200928358625123975.jpg" alt="北京园博园“赏最美银杏大道”" title="北京园博园“赏最美银杏大道”" class="img1" />
                        <span>北京园博园“赏最美银杏大道”</span>
					</a>
                    </div>
				</div>
			
				
				
<div class="clear"></div>
<div class="container" style="text-align:center;">
<div class="page-wrapper">
<script type="text/javascript"> 
	var currentPage = 0;//所在页从0开始
	var prevPage = currentPage-1//上一页
	var nextPage = currentPage+1//下一页
	var countPage = 6//共多少页
	
	//设置上一页代码
	if(countPage>1&&currentPage!=0&&currentPage!=1)
	     document.write("<a href=\"index.html\" class='btn-first' style='disolay:none;'>首页</a><a href=\"index"+"_" + prevPage + "."+"html\" class='btn-first'>上一页</a>");
	else if(countPage>1&&currentPage!=0&&currentPage==1)
	     document.write("<a href=\"index.html\" class='btn-first' style='disolay:none;'>首页</a><a href=\"index.html\" class='btn-first'>上一页</a>&nbsp;");
	else
	     document.write("&nbsp;");
	//循环
	var num = 5;
	for(var i=0+(currentPage-1-(currentPage-1)%num) ; i<=(num+(currentPage-1-(currentPage-1)%num))&&(i<countPage) ; i++){
	     if(currentPage==i)
	         document.write("<a class='num active'>"+(i+1)+"</a>&nbsp;");
	     else if(i==0)
	         document.write("<a href=\"index.html\" class='num'>"+(i+1)+"</a>&nbsp;");
	     else
	         document.write("<a href=\"index"+"_" + i + "."+"html\" class='num'>"+(i+1)+"</a>&nbsp;");
	}
	//设置下一页代码 
	if(countPage>1&&currentPage!=(countPage-1))
	     document.write("<a href=\"index"+"_" + nextPage + "."+"html\" class='btn-last'>下一页</a>&nbsp;<a href=\"index_" + (countPage-1) + ".html\" class='btn-last' style='disolay:none;'>尾页</a>&nbsp;");
	else
	     document.write("&nbsp;"); 
	//总页面	
	document.write("<span class='txt'>共"+countPage+"页</span>");	
	//跳转页面
	document.write("<span class='txt'>到第</span> <input type='text' id='num' value="+(currentPage+1)+" class='page' /> <span class='txt'>页</span>"+" <button class='btn-okay' type='button' onClick=javascript:toPage()>确定</button>");                 
	function toPage(){
	     var _num = document.getElementById("num").value;
	     if(isNaN(_num)){
	         alert("请输入数字");
	         return false;
	     }
	     var str = "index"+"_"+(_num-1)+"."+"html";
	     var url = location.href.substring(0,location.href.lastIndexOf("/")+1);
	     if(_num<=1||_num==null)
	         location.href = url+"index"+"."+"html";
	     else if(_num>countPage)
	         alert("本频道最多"+countPage+"页");
	     else
	         location.href = url+str;
	}
</script> 
</div>
</div>   
			</div>
		</div>
                      </li>
                         
                  </ul>
            </div>
      </div>
<style>
	\@media only screen and (max-width: 414px) {
	 .crumbsBox{width: 100%;display: none;}
	        .crumbsBox .crumbs{width: 97%;}
	        .crumbs{height: auto !important;}
	.container-sd{width:99%;margin:0 0 0 1px;}
	.g-wrap .m-imgBlock img{width:100%;}
	.g-wrap .m-imgBlock{margin:2px;}
	div.page-wrapper a, div.page-wrapper span{font-size:12px;}
	div.page-wrapper a.btn-first, div.page-wrapper a.btn-last, div.page-wrapper a.num{padding:5px 10px;}
	div.page-wrapper button.btn-okay{font-size:12px;padding:5px 10px;}
	div.page-wrapper input.page{font-size:12px;}
	div.page-wrapper span.txt{display: none;}
	div.page-wrapper input.page{display: none;}
	div.page-wrapper button.btn-okay{display: none;}
	}
</style>

	<script src="../../images/ts-jquery-1.7.min.js"></script>
	<script>
		$(function(){
		   
		   
		    $(".info p").each(function(){
					var txt = $(this).parent().siblings().attr("src");
					$(this).html(txt);
			})
			
		   $(".menu li").click(function(){
				var index = $(this).index();
			   $(this).addClass("current").siblings().removeClass("current");
		       $(".content li").eq(index).show().siblings().hide();
		    })
		    
		})
	</script>
	<script>
		$(function(){
		   
		   
		    $(".infos p").each(function(){
					var txt = $(this).parent().siblings().attr("src");
					$(this).html(txt);
			})
			
		   $(".menus li").click(function(){
				var index = $(this).index();
			   $(this).addClass("currents").siblings().removeClass("currents");
		       $(".contents li").eq(index).show().siblings().hide();
		    })
		    
		})
	</script>
	<script type="text/javascript">
			$(window).load(function() {
				if(!isMob()){
					//最外面容器的宽度
					var g_wrap_width=$(".g-wrap").width();
					//定义一行3个
					var index = 3;
					//计算每个小版块的宽度和高度,20为每个版块右间距20
					var m_imgBlock_width = g_wrap_width/index-5;
					
					//给每个小版块的宽高赋值
					$(".g-wrap .m-imgBlock").css({
						"width":m_imgBlock_width+"px",
						"height":m_imgBlock_width+"px"
					});
				}else{
					//最外面容器的宽度
					var g_wrap_width=$(".g-wrap").width();
					//定义一行4个
					var index = 2;
					//计算每个小版块的宽度和高度,20为每个版块右间距20
					var m_imgBlock_width = g_wrap_width/index-2;
					
					//给每个小版块的宽高赋值
					$(".g-wrap .m-imgBlock").css({
						"width":m_imgBlock_width+"px",
						"height":m_imgBlock_width+"px"
					});
				}
				
				$(".m-imgBlock").each(function(i){
					//console.log(i);
					//获取图片的原始宽高
					var img_widht = $(this).find("img").width();
					var img_height = $(this).find("img").height();
					console.log(img_widht+"图片宽度"+img_height+"图片高度");
					if(img_widht > img_height){
						$(this).find("img").css({
							"height":"100%",
							"width":"auto"
						});
						//获取图片改变后的宽高
						var imgChange_width = $(this).find("img").width();
						var imgChange_height = $(this).find("img").height();
						$(this).find("img").css({
							"margin-left":-(imgChange_width-m_imgBlock_width)/2+"px"
						});
					}
					if(img_widht < img_height){
						$(this).find("img").css({
							"height":"auto",
							"width":"100%"
						});
						//获取图片改变后的宽高
						var imgChange_width = $(this).find("img").width();
						var imgChange_height = $(this).find("img").height();
						$(this).find("img").css({
							"margin-top":-(imgChange_height-m_imgBlock_width)/2+"px"
						});
					}
				});
				
				function isMob() {
		            return /AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))
		        }
			})
		</script>

<!--图册概览页-->
</body>
</html>
